<template>
	<view class="heads">
		<view class="column min30 pad20 bg-f rad2">
			<view class="row">
				<view class="head_title omit1">
					<text class="head_title_size">{{ list.title }}</text>
				</view>
				<view class="minau minright0">
					<text class="time_size">{{ $com.format(list.create_time, 'yyyy-MM-dd') }}</text>
				</view>
			</view>
			<view class="mintop30">
				<u-parse :content="list.content"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				list: []
			}
		},
		onLoad(op) {
			this.id = op.id
		},
		onShow() {
			this.getNotice();
		},
		methods: {
			async getNotice() { //分类列表
				let {
					code,
					message,
					data
				} = await this.$com.fetchGet("AppletHome/GetbulletinInfo", {
					id: this.id
				})
				if (code == 1) {
					this.list = data
				} else {
					uni.showToast({
						icon: "none",
						title: message
					})
				}
			},
		}
	}
</script>

<style>
</style>